package com.zhiyou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.BookTypeMapper;
import com.zhiyou.model.BookType;
import com.zhiyou.service.BookTypeService;
@Service
public class BookTypeServiceImpl implements BookTypeService{

	@Autowired
	BookTypeMapper bookMapper;
	@Override
	public void add(BookType bookType) {
		bookMapper.add(bookType);
	}

	@Override
	public void update(BookType bookType) {
		bookMapper.update(bookType);
	}

	@Override
	public void delete(int id) {
		bookMapper.delete(id);
	}

	@Override
	public BookType selectById(int id) {
		return bookMapper.selectById(id);
	}

	@Override
	public List<BookType> selectAll() {
		return bookMapper.selectAll();
	}

	@Override
	public void deleteAll(int[] ids) {
		// TODO Auto-generated method stub
		bookMapper.deleteAll(ids);
	}

}
